Skip to content

[FEA] LTO Reduce 4: Add Reduction Benchmarks - #25039

Draft
lamarrr wants to merge 1 commit into
lamarrr/reduce-native-3-segmentedfrom
lamarrr/reduce-native-4-benchmarks
Draft

lamarrr wants to merge 1 commit into
lamarrr/reduce-native-3-segmentedfrom
lamarrr/reduce-native-4-benchmarks

Conversation

@lamarrr

@lamarrr lamarrr commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add a standalone C++ benchmark driver comparing LTO reductions with existing public cuDF APIs. It uses four warmups and five synchronized wall-clock samples per case, with result validation outside timing and no NVBench automatic timing.

  • TPC-DS Q13's post-join predicate and four aggregates: fused LTO versus AST JIT/non-JIT filtering, retention-mask materialization and separate reductions. Joins are outside this workload.
  • Segmented SUM and fused SUM/MAX: short, long and skewed segments, nullable inputs, and known/unknown maximum-length hints.
  • CSV samples, logical input GB/s, offline SVG plotting and a concise description of the measured SQL and timing boundaries.

Allocation and finalization are timed. LTO returns independent single-row columns; public cuDF segmented reduction returns packed columns, so the comparisons include output-layout costs.

Validation

All 72 smoke and 60 full-matrix cases matched the public cuDF reference; eight SVGs were generated. The full stack passed all 122 CTest entries, and formatting checks passed. CUDA 13.3.73, Release, sm_86, RTX A6000 (48 GB).

The local timings are validation data: GPU 0 drives a display while an independent Nsight campaign is active on GPU 1. No controlled performance claims are made from these runs.

Stack

Registered GitHub native stack #25040, targeting main.

  1. [FEA] Add shared LTO UDF compilation and fragment ownership
  2. [FEA] Add LTO scalar reductions
  3. [FEA] Add LTO segmented reductions
  4. [FEA] Add LTO reduction benchmark comparisons

This PR: 4/4. All head and base branches are in NVIDIA/cudf. Use GitHub's native stack controls for navigation, rebasing and ordered merges.

Replaces #25033; its existing review discussion remains available there.

Migration validation: all 11 affected translation units compile after restacking onto 9a783f549c2. The first layer preserves the updated shared-UDF implementation, with one stale internal argument corrected; scalar tests use its current fragment API. Earlier full-suite, memcheck and benchmark results describe the pre-migration stack; refreshed runtime validation remains pending CI.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@copy-pr-bot

copy-pr-bot Bot commented Nov 3, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@lamarrr
lamarrr added this pull request to stack #25040 November 3, 2026 18:04
@github-actions github-actions Bot added libcudf Affects libcudf (C++/CUDA) code. CMake CMake build issue labels Nov 3, 2026
@lamarrr lamarrr changed the title [FEA] Add LTO reduction benchmark comparisons [FEA] LTO Reduce 4: Add Reduction Benchmarks Nov 5, 2026
@lamarrr
lamarrr removed this pull request from stack #25040 November 10, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CMake CMake build issue libcudf Affects libcudf (C++/CUDA) code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant